ddosCreate
Description
Purchase ddos product
Request Method
POST
Request Path
/customer/ddos/create
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| period | BODY | integer | Yes | No sample value for this parameter. | period |
| cost | BODY | number | Yes | No sample value for this parameter. | amount |
| regionId | BODY | string | Yes | No sample value for this parameter. | regionId |
| billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method |
| voucherInstanceId | BODY | string | No | No sample value for this parameter. | voucher Instance Id |
| pricingCycle | BODY | string | Yes | No sample value for this parameter. | cycle. Month or Year |
| couponInstanceId | BODY | string | No | No sample value for this parameter. | coupon Instance Id |
| capacity | BODY | integer | Yes | No sample value for this parameter. | purchase quantity |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| result | object | `{"instanceId":"Anti-DDoS-2022072618520300001","orderId":2.02207261852030003E+18}` | No description for this parameter. |
| resultCode | string | 0 | No description for this parameter. |
| resultMsg | string | success | No description for this parameter. |
Example
Successful Response example
{
"result":
{
"instanceId":"Anti-DDoS-2022072618520300001",
"orderId":2.02207261852030003E+18
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}